import request from '@/utils/request'

// 查询审核步骤列表
export function listStep(query) {
  return request({
    url: '/manage/step/list',
    method: 'get',
    params: query
  })
}

// 查询审核步骤详细
export function getStep(stepId) {
  return request({
    url: '/manage/step/' + stepId,
    method: 'get'
  })
}

// 新增审核步骤
export function addStep(data) {
  return request({
    url: '/manage/step',
    method: 'post',
    data: data
  })
}

// 修改审核步骤
export function updateStep(data) {
  return request({
    url: '/manage/step',
    method: 'put',
    data: data
  })
}

// 删除审核步骤
export function delStep(stepId) {
  return request({
    url: '/manage/step/' + stepId,
    method: 'delete'
  })
}
